﻿using Abp.AspNetCore.Mvc.Controllers;
using Abp.Domain.Repositories;
using AutoMapper;
using Camc.Quality.FilesTransfer;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.Web.Controllers
{
    public class PadController : AbpController
    {

        private readonly IRepository<FileTransfer, Guid> _operationHeartBeat;


        public PadController(
               IRepository<FileTransfer, Guid> operationHeartBeat)
        {
            _operationHeartBeat = operationHeartBeat;
        }

        [HttpPost]
        /// <summary>
        /// Pad列表的新增和更新
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task CreateHeartBeat(FileTransferDto input)
        {
            FilesTransferAppService service = new FilesTransferAppService(_operationHeartBeat);
            await service.CreateOrUpdateHeartBeat(input);
        }
    }
}
